Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings: add jinja2 support (bug 1873071) #20

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

zzzeid
Copy link
Collaborator

@zzzeid zzzeid commented Jan 4, 2024

  • add jinja2 to requirements
  • update settings to pick up jinja2 templates
  • add basic jinja2 environment to lando

@zzzeid zzzeid marked this pull request as ready for review January 4, 2024 21:10
@zzzeid zzzeid requested a review from cgsheeh January 4, 2024 21:10
Copy link
Member

@cgsheeh cgsheeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems out of place to add this without including any templates.

@@ -0,0 +1,15 @@
from django.templatetags.static import static
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What else is going to go in this module? Could we just put this in settings.py?

Copy link
Collaborator Author

@zzzeid zzzeid Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What else is going to go in this module? Could we just put this in settings.py?

This is the typical way of adding a Jinja environment. Basically all the filters and custom functionality we added (e.g., template_helpers) in the legacy repo will eventually go in here. This doesn't belong in the settings module.

@zzzeid
Copy link
Collaborator Author

zzzeid commented Jan 8, 2024

Seems out of place to add this without including any templates.

Templates are already in the base branch, and are moved in PR #21, and will be properly ported in a different PR, since they all depend on various functionality that is not available at this time.

@zzzeid zzzeid force-pushed the zeid/bug-1870697-clean-up-ui-files branch from 0da890f to 6b8aa78 Compare January 17, 2024 20:23
Base automatically changed from zeid/bug-1870697-clean-up-ui-files to main January 17, 2024 20:26
- add jinja2 to requirements
- update settings to pick up jinja2 templates
- add basic jinja2 environment to lando
@zzzeid zzzeid force-pushed the zeid/bug-1873071-jinja2 branch from 548a015 to 5e2a6a3 Compare January 17, 2024 20:28
@zzzeid zzzeid merged commit d117b09 into main Jan 17, 2024
1 check failed
@zzzeid zzzeid deleted the zeid/bug-1873071-jinja2 branch January 17, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants